package cqrtplm.mapper;

import cqrtplm.entity.OnlineAnnotationLinkDO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.BaseMapper;

@Repository
public interface OnlineAnnotationLinkMapper extends BaseMapper<OnlineAnnotationLinkDO> {

    @Delete("delete from rt_doc_annotation_LINK where boid = #{oid}")
    int deleteFileByBOid(String oid);

    @Select("select * from rt_doc_annotation_LINK where aoid = #{oid} and remark = 'img'")
    OnlineAnnotationLinkDO selectByBoid(String oid);
}
